<div id="main">
<div class="position">您现在的位置：<a href="<?{url url='/'}?>">首页</a> &gt;&gt; <a href="<?{url url="/`$arrGWeb.module_id`/"}?>"><?{$arrGWeb.module_name}?></a></div>
<div class="height12"></div>
<!--左列开始-->
<div id="column_l">
<?{include file="largess/block/detailpage_menu.html"}?>	
	<div class="height12"></div>
<?{include file="user/block/kefu.html"}?>	
</div>
<!--左列结束-->
<div id="column_r">
	<div id="exchangestep">
		<ul>
			<li class="first">积分兑换步骤</li>
			<li class="style2">1.查看商品</li>
			<li class="style2">2.放入购物车</li>
			<li class="style2">3.确认兑换</li>
			<li class="style2">4.兑换完成</li>
		</ul>
	</div>
	<div class="height12"></div>
	<div id="column_protype" style="overflow:hidden;">
		积分赠品所属分类：
		<?{foreach from=$arrTypeList item=type}?><a href="<?{url url = "/largess/index.php?type_id=`$type.type_id`"}?>"><?{$type.type_title}?></a> &gt; <a href="#"><?{$arrData.title}?></a>
		<?{/foreach}?>
	</div>
	<div class="height12"></div>
	<div id="proinfo">
	<script type="text/javascript" src="../../plug-in/magiczoom/magiczoom.js"></script>
	<link type="text/css" rel="stylesheet" href="../../plug-in/magiczoom/magiczoom.css"/>
		<div id="proinfo_l">		
			<div id="proinfo_l_t">
				<a href="<?{$FileCallPath}?>b/<?{$arrData.thumbnail}?>" target="_blank" class="MagicZoom" id="Zoomer" rel="selectors-effect-speed: 600;zoom-distance:8;opacity-reverse:true;thumb-change:mouseover;"  title="<?{$arrData.photo_narrate}?>"><img  src="<?{$FileCallPath}?>s/<?{$arrData.thumbnail}?>" /></a>
			</div>
			<div id="proinfo_l_b">
				<ol>
				<li>
				<img src="<?{$arrGWeb.templats_root}?>/images/arr_left.gif" onClick="clickdiv()" />
				</li>
				<li>
				<div id="demo1" style="overflow:hidden;height:60px;width:244px;" >
					<div style="width:730px;">
				<?{foreach from=$arrData.photo key=key item=photo}?>
				<img id="alternate_photo_<?{$key}?>" style="border:3px solid #ccc;" src="<?{$FileCallPath}?>s/<?{$photo.photo}?>" width="50" height="50" onmouseover="javascript:change_largess_photo(<?{$key}?>);">
				<?{/foreach}?>
					</div>
				</div>
				</li>
				<li>
				<img src="<?{$arrGWeb.templats_root}?>/images/arr_right.gif" onClick="Rclickdiv()"  />
				</li>
				</ol>
<script type="text/javascript"> 
var step = 61; //步长
function clickdiv(){ 
	document.getElementById("demo1").scrollLeft= document.getElementById("demo1").scrollLeft-step;
} 
function Rclickdiv(){ 
	document.getElementById("demo1").scrollLeft = document.getElementById("demo1").scrollLeft+step;
}
</script> 
			</div>
		</div>
		<div id="proinfo_r">
				<h2><?{$arrData.brand}?> <?{$arrData.title}?> <?{$arrData.model}?></h2><br>
				<ul>
					<?{if $arrData.brand}?><h3>商品品牌：<?{$arrData.brand}?></h3><?{/if}?>
					<?{if $arrData.model}?><h3>商品型号：<?{$arrData.model}?></h3><?{/if}?>
					<?{if $arrData.code}?><li>商品货号：<?{$arrData.code}?></li><?{/if}?>
					<?{if $arrData.producing_area}?><li>商品产地：<?{$arrData.producing_area}?></li><?{/if}?>
					<?{if $arrData.packing}?><li>商品包装：<?{$arrData.packing}?></li><?{/if}?>
					<?{if $arrData.grade}?><li>商品等级：<?{$arrData.grade}?></li><?{/if}?>
					<?{if $arrData.authentication}?><li>商品认证：<?{$arrData.authentication}?></li><?{/if}?>
					<?{if $arrData.market_price}?><li>市场价格：<span style="color:red;"><del>￥<?{$arrData.market_price}?></del></span></li><?{/if}?>
					<?{if $arrData.my_price}?><li>5117价格：<span style="color:#339933;">￥<?{$arrData.my_price}?></span></li><?{/if}?>
					<?{if $arrData.bonus}?><li>兑换积分：<span style="color:#339933;">￥<?{$arrData.bonus}?></span></li><?{/if}?>
					<?{if !empty($arrData.qq)}?><li>客服 Q Q：
					<?{foreach from=$arrData.qq item=arrQQ}?><a target=blank href=Tencent://Message/?menu=yes&exe=&uin=<?{$arrQQ}?>&websiteName=<?{$arrGWeb.name}?>&info="<?{$arrData.title}?>客服"><img border="0" SRC="http://wpa.qq.com/pa?p=1:<?{$arrQQ}?>:7" alt="在线QQ客户服务" width="71" height="24"></a> 
					<?{/foreach}?></li>
					<?{/if}?>
					<li style="height:45px;"><div id="buttontoa">
						<div id="buttontoa_l"><a href="<?{url url = "/deal/largess.php?id=`$arrData.id`"}?>" target="cart">立即兑换</a></div>
						<div id="buttontoa_r"><a href="JavaScript:AddFavorite(window.location,document.title);">加入收藏</a></div>
						<div class="clr"></div>
					</div>
					</li>
				</ul>
		</div>
		<div class="clr"></div>
	</div>
	<div class="height12"></div>
	<!--商品说明开始-->
	<div id="proinstrion">
		<div class="prodetai_rcol_t"><div class="prodetai_rcol_bg">商品说明</div></div>
		<div class="prodetai_rcol_b">
			<p>
			<center>
			<?{foreach from=$arrData.video item=video name=video}?>
			<?{if $smarty.foreach.video.first}?><script type='text/javascript' src='<?{$arrGWeb.WEB_ROOT_pre}?>/plug-in/flvplayer/swfobject.js'></script><?{/if}?>
			<?{if $video.video != ""}?>
			<div id='vpreview<?{$smarty.foreach.video.index}?>'>The player will show in this paragraph</div>
			<script type='text/javascript'>
			var s1 = new SWFObject('<?{$arrGWeb.WEB_ROOT_pre}?>/plug-in/flvplayer/flvplayer.swf','player','400','300','9');
			s1.addParam('allowfullscreen','true');
			s1.addParam('allowscriptaccess','true');
			s1.addParam('flashvars','file=<?{$FileCallPath}?><?{$video.video}?>&image=<?{$FileCallPath}?>b/<?{$video.videopic}?>');
			s1.write('vpreview<?{$smarty.foreach.video.index}?>');
			</script>
			<?{/if}?>
			<ul>			
			<?{if $video.video_title}?><li>标题：<?{$video.video_title}?></li><?{/if}?>
			<?{if $video.video_narrate}?><li>简介：<?{$video.video_narrate}?></li><?{/if}?>
			<?{if $video.video_time}?><li>时长：<?{$video.video_time}?></li><?{/if}?>
			</ul><br />
			<?{/foreach}?>
			</center>
			<?{$arrData.intro|nl2br}?></p>
		</div>
	</div>
	<div class="height12"></div>
	<!--商品说明开始-->
	<?{if !empty($arrInfoList)}?>
	<div id="xiangguanpro">
		<div id="tuijianpro">
			<div class="tui_xiang_t">相关赠品</div>			
				<div id="related">
				<ul>
				<?{foreach from=$arrInfoList item=arrInfoList}?>
					<li style="width:130px!important;width:130px;margin:5px 5px 0 5px;">
						<div id="relatedimg" style="width:130px!important;margin:0 auto;"><a href="<?{url url = "/largess/detail.php?id=`$arrInfoList.id`" cache = "`$arrGWeb.file_static`"}?>" title="<?{$arrInfoList.summary|htmlspecialchars}?>"><img src="<?{$FileCallPath}?>s/<?{$arrInfoList.thumbnail}?>" onload="resizepic(this,120)"></a></div><br>
						<a href="<?{url url = "/largess/detail.php?id=`$arrInfoList.id`" cache = "`$arrGWeb.file_static`"}?>" title="<?{$arrInfoList.summary|htmlspecialchars}?>"><?{$arrInfoList.brand}?><?{$arrInfoList.model}?><?{$arrInfoList.title}?></a>
					</li>
				<?{/foreach}?>
					<div class="clr"></div>
				</ul>
				</div>			
		</div>		
		<div class="clr"></div>
	</div>
	<?{/if}?>
	</div>
</div>
